import { attrDefine } from "../../../../../defines/attr_define";
import { elementDefine } from "../../../../../defines/element_define";
import { WeaponTypeDefine } from "../../../../../defines/equip_define";
import { GoodTypeDefine } from "../../../../../defines/good_type";
import { LimbsTypeDefine } from "../../../../../defines/people_limbs";
import { humanRace } from "../../../../../defines/race_define";
import { WeaponGood } from "../../../../goods-control/weapon_good";

/**
 * 铁匕首
 */
export default class GoodNode extends WeaponGood{
  constructor(...params){
    super(...params);
  }

  getTitle(){
    return '铁剑'
  }

  getDesc(){
    return '一把平平无奇的铁剑。';
  }
  
  getNeedAttr(){
    return {
      [attrDefine.blood.key]: 5,
    }
  }

  getIsEquip(){
    return [
			LimbsTypeDefine.hand,
    ]
  }

  getWeaponType(){
    return WeaponTypeDefine.sword;
  }

  getDefaultAttr(){
    return {
      [attrDefine.element.key]: [elementDefine.gold.key],
      [attrDefine.weight.key]: 5,
      [attrDefine.durable.key]: 50,
      [attrDefine.bloodAtk.key]: 20,
      [attrDefine.action.key]: 1
    }
  }
}